package Dao_view

import "Sales_system/Dao"

func Getgoodsview() (error, []goodsview, int64) {
	var GoodsView []goodsview
	var total int64
	err := Dao.Db.Table("goodsview").Count(&total).Find(&GoodsView).Error

	return err, GoodsView, total
}